//
//  AppDelegate.swift
//  swiftWeiBo
//
//  Created by Johnray on 15/9/21.
//  Copyright © 2015年 Johnray. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        //UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        
        setBarTintColor()
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        window?.rootViewController = JRTabBarController()
        
        window?.makeKeyAndVisible()
        return true
    }
    
    
    /**
    设置全局导航栏和tabbar文字颜色
    */
    func setBarTintColor(){
    
        UINavigationBar.appearance().tintColor = JRBarColor
        
        UITabBar.appearance().tintColor = JRBarColor
    
    }

   


}

